import 'package:meta/meta.dart';
import 'package:state_management_flutter_bloc/models/nation.dart';
import 'package:state_management_flutter_bloc/search_configuration.dart';

abstract class PlayerListingEvent {}

class CountrySelectedEvent extends PlayerListingEvent{
  final NationModel nationModel;
  final int page ;
  CountrySelectedEvent({@required this.nationModel,this.page=1}):assert(nationModel != null );
}

class PlayerListLoadMoreEvent extends PlayerListingEvent{
}

class SearchTextChangedEvent extends PlayerListingEvent{
  final String searchTerm;
  SearchTextChangedEvent({@required this.searchTerm}):assert(searchTerm != null);
}

class SearchAdvanceEvent extends PlayerListingEvent{
  final SearchConfiguration searchConfiguration;

  SearchAdvanceEvent(this.searchConfiguration);

}